﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace OnlineEducation.Models.OrderViewModels
{
    public class TeachingEvaluationViewModel
    {
        public int StudentId { get; set; }
        public int TeachPlanId { get; set; }
        /// <summary>
        /// 评价的内容
        /// </summary>
        [Required(ErrorMessage = "评论内容不能为空")]
        [StringLength(100, ErrorMessage = "长度不能超过200")]
        [Display(Name ="内容")]
        public string Content { get; set; }
        /// <summary>
        /// 评分
        /// </summary>
        [Display(Name = "评分")]
        public decimal Point { get; set; }
        public int Id { get; set; }
        public string StudentName { get; set; }
        [Display(Name = "课程名称")]
        public string CourseName { get; set; }
    }
}
